package cn.wolfcode.wolf2w.query;

import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

/**
 * 将前台传过来的数值转换成对应的时间范围
 */
@Getter
public class TraveComment {

    public static final Map<Integer,TraveComment> DAYTYPE = new HashMap<>();
    public static final Map<Integer,TraveComment> PEREXPENDTYPE = new HashMap<>();

    static {
        DAYTYPE.put(1, new TraveComment(0,3 ));
        DAYTYPE.put(2,new TraveComment(4,7 ));
        DAYTYPE.put(3,new TraveComment(8,14 ));
        DAYTYPE.put(4,new TraveComment(15,Integer.MAX_VALUE ));

        PEREXPENDTYPE.put(1, new TraveComment(1,999));
        PEREXPENDTYPE.put(2,new TraveComment(1000,6000));
        PEREXPENDTYPE.put(3,new TraveComment(6000,20000));
        PEREXPENDTYPE.put(4,new TraveComment(20000,Integer.MAX_VALUE ));

    }
    private Integer minNum;
    private Integer maxNum;


    public TraveComment(int minNum,int maxNum){
        this.maxNum=maxNum;
        this.minNum=minNum;
    }
}
